package com.pinda.mapper;

import com.pinda.auth.entity.PdAuthUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pinda.auth.view.AuthorizationView;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 * 角色分配
账号角色绑定 Mapper 接口
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-14
 */
public interface PdAuthUserRoleMapper extends BaseMapper<PdAuthUserRole> {
    /**
     *  TODO 批量授予用户角色
     * @param authorizationView
     * @return int
     */
    int batchAddUserRole(AuthorizationView authorizationView);

    /**
     * TODO 批量回收用户角色
     * @param authorizationView
     * @return int
     */
    int batchRemoveUserRole(AuthorizationView authorizationView);
}
